home *** CD-ROM | disk | FTP | other *** search
- Path: pm71001.scilab.wesleyan.edu!user
- From: stlabguest@wesleyan.edu (STLab Public Access Macintosh)
- Newsgroups: comp.lang.c
- Subject: iHelp! Dumb question for smart THINK C users.
- Date: Sat, 20 Jan 1996 16:01:28 -0500
- Organization: Wesleyan University
- Message-ID: <stlabguest-2001961601280001@pm71001.scilab.wesleyan.edu>
- NNTP-Posting-Host: pm71001.scilab.wesleyan.edu
-
- I'm a total newbie to C programming, but I got a copy of THINK C yesterday
- and decided to try to learn. So I tried a very simple program:
-
- #include <STDIO.h>
- main()
- {
- printf( "bla" );
- }
-
- It compiled without any errors, but when I tried to run it, it said that
- there was a link error: it didn't know what "prinf" meant. I'm sure that
- it was loading the "STDIO.h" properly, because I changed the program to:
-
- #include <dummy.h>
- main()
- {
- printf( "bla" );
- }
-
- and it told me it couldn't find the file "dummy.h" What gives? I thought my
- STDIO.h file might be the problem, but I tried a different copy in my
- school's computer lab and it still didn't work.
-
- Thanks in advance,
-
- -jacob eisenstein
- jacob@helpdesk.wesleyan.edu
-